<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				font-size: 80px;
			}
			div{
				width: 100px;
				height: 100px;
				background: rgb(0,0,0);
			}
		</style>
	</head>
	<body>
		<div>
			
		</div>
		<script type="text/javascript">
			
//			for(var i = 0;i<10;i++){
//				var num = Math.floor(Math.random()*75+25);
//				document.write(num+"<br>");
//			}
			var div = document.querySelectorAll("div")[0];
			function getColor(){
				var a = Math.floor(Math.random()*256);
				var b = Math.floor(Math.random()*256);
				var c = Math.floor(Math.random()*256);
				var color = "rgb("+a+","+b+","+c+")";
				return color;
			}

			div.addEventListener("click",function(){
				div.style.backgroundColor = getColor();
			})
			
			
			

		</script>
	</body>
</html>
